home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 6 (Reseller Edition)
/
Apple Ref. & Pres. Lib.v6.0.toast
/
pc
/
3-Presentations
/
Apple Demos
/
Training
/
HyperCard 2.0 Training
/
Intro to HyperCard 2.0
/
card_46637.txt
< prev
next >
Wrap
Text File
|
1990-08-24
|
960b
|
41 lines
-- card: 46637 from stack: in.0
-- bmap block id: 0
-- flags: 0000
-- background id: 45680
-- name: CREATING A NEW MENU
-- part 1 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=97 top=219 right=272 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 14
-- part name:
-- part contents for background part 1
----- text -----
To create a new menu, simply append an item to it.
If the specified menu isn’t in the menubar, HyperCard will create it and add it to the menubar, and then append the specified item to it.
For example:
-- part contents for card part 1
----- text -----
append menuItem "Japanese" to menu "Language"
append "Card 2" to menu "Go" with menuMessage "goSecond"
append menuItem "Sound" to menu 4 with menuMsg "audioOn"
-- part contents for background part 2
----- text -----
CREATING A NEW MENU